<!-- addEditForever.html 2018-07-09 13:54:01-->
#@HplusLayout()
#define cssStyle()
#end
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="saveForever" novalidate="novalidate" onsubmit="return validateCallback(this,listDialogAjaxDone)">
		<input type="hidden" name="sceneForever.id" value="#(sceneForever.id)"/>
		<input type="hidden" name="sceneForever.plugin" value="#(sceneForever.plugin)"/>
		<input type="hidden" name="sceneForever.component" value="#(sceneForever.component)"/>
		<input type="hidden" name="sceneForever.model" value="#(sceneForever.model)"/>
		<input type="hidden" name="sceneForever.object_id" value="#(sceneForever.object_id)"/>
		<div class="form-group">
			<label class="col-xs-3 control-label">名称：</label>
			<div class="col-xs-8">
				<input type="text" class="form-control required" name="sceneForever.name" value="#(sceneForever.name)"/>
			</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">扫码记录：</label>
				<div class="col-xs-8">
		#for(item:data("SHIFOU"))
		<label style="font-weight:normal;line-height: 37px;margin-bottom: 0px;padding-right: 5px"><input class="required" type="radio" name="sceneForever.is_record" #if(sceneForever.is_record)#if(sceneForever.is_record==item.key)checked="checked"#end#elseif(item.key=="T")checked="checked"#end value="#(item.key)"/> #(item.value.name) </label>
		#end
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">状态：</label>
				<div class="col-xs-8">
		#for(item:data("ENABLE_FLAG"))
		<label style="font-weight:normal;line-height: 37px;margin-bottom: 0px;padding-right: 5px"><input class="required" type="radio" name="sceneForever.enable_flag" #if(sceneForever.enable_flag)#if(sceneForever.enable_flag==item.key)checked="checked"#end#elseif(item.key=="T")checked="checked"#end value="#(item.key)"/> #(item.value.name) </label>
		#end
				</div>
		</div>
		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>
#end
#define jsFunction()
<script>
$(function(){
});
</script>
#end
